<select class = "category">
	<option value = "">{$dsfm_category_text}</option>
	{loop="$dsfm_category_data"}
		{if="$dsfm_selcat == $key"}
			<option value = "{$key}" selected>{$value}</option>
		{else}
			<option value = "{$key}">{$value}</option>
		{/if}
	{/loop}
</select>

<script>
$(function() {
	$(".category").change(function(){
		window.location.href = "?dsfm_selcat="+$(this).val();
	});
});
</script>